package cn.nextProject.mapper;

import cn.nextProject.entity.Permission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PermissionMapper {

    void saveBatch(List<Permission> permissionList);

    void saveBatchHasId(List<Permission> permissionList);

    void update(Permission permissionList);

    List<Permission> findAll();

    void deleteAll();

    List<Permission> findByNotIn(@Param("roleGroupId") Long roleGroupId);

}
